import * as types from '../types'


const reducer = (state = {
    bannerList: [],
    proList: []
}, action) => {
    switch (action.type) {
        case types.CHANGE_BANNER_LIST:

            return { ...state, bannerList: action.payload }
        case types.CHANGE_PRO_LIST:

            return { ...state, proList: action.payload }
        default:
            return state
    }
}


export default reducer